package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.MyFavoriteMusic;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface MyFavoriteMusicDao extends CrudRepository<MyFavoriteMusic, Long> {

    List<MyFavoriteMusic> findAllByUserId(long userId);

    MyFavoriteMusic findOneByMusicIdAndUserId(int musicId, long userId);
}
